package com.srit.migration.business.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

import com.srit.base.bean.Page;
import com.srit.migration.business.bean.DbTableSpace;
import com.srit.migration.business.dao.DbTableSpaceDao;
import com.srit.migration.business.service.DbTableSpaceService;

/**
 * @author guan
 * @by serviceImpl.tem
 * 
 */
 @Service
public class DbTableSpaceServiceImpl implements DbTableSpaceService {
	@Autowired(required = true)
	private DbTableSpaceDao dbTableSpaceDao;

	@Override
	public void save(DbTableSpace dbTableSpace) {
		dbTableSpaceDao.save(dbTableSpace);
	}

	@Override
	public void update(DbTableSpace dbTableSpace) {
		dbTableSpaceDao.update(dbTableSpace);
	}

	@Override
	public DbTableSpace getById(DbTableSpace dbTableSpace) {
		return (DbTableSpace) dbTableSpaceDao.getById(dbTableSpace);
	}

	@Override
	public void delete(DbTableSpace dbTableSpace) {
		dbTableSpaceDao.delete( dbTableSpace);
	}

	@Override
	public void page(Page page) {
		dbTableSpaceDao.page( page);
	}
	
	@Override
	public void batchSave(List<DbTableSpace> dbTableSpaceList) {
		dbTableSpaceDao.batchSave(dbTableSpaceList);

	}

	@Override
	public List list(Page page) {
		return dbTableSpaceDao.list( page);
	}

}
